﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YiLe.Model.Domain
{
    public class Role
    {
        public Role() { }

        public virtual int RoleID { get; set; }
        public virtual string RoleName { get; set; }
        //多对多关系：Role属于多个User
        public virtual IList<User> Users { get; set; }
        //多对多关系；Role有多个Permission
        public virtual IList<Permission> Permissions { get; set; }
    }
}
